package cn.car.biz.carAccess.eventListener;

import cn.car.biz.carAccess.event.PlateDetectResultEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class EventListenerLED implements ApplicationListener<PlateDetectResultEvent> {
    @Override
    public boolean supportsAsyncExecution() {
        return true;
    }

    @Override
    public void onApplicationEvent(PlateDetectResultEvent event) {
        //PlateDetectedContext plateDetectedContext = event.getPlateDetectedContext();

        //推送LED

    }
}
